﻿--[[
   @brief    sys setting dialog desc
   @author   hqzheng
   @version  1.0
   @date     2017-05-024
--]]

setting_dialog_desc =
{
    module_name = 'setting_dialog',
    events = 
    {
        {
            c_event = 
            {
                {
                    id  = ierd_tgp.game_library.OPEN_TGP_CONFIG,
                    callback = "setting_dialog_control.open_setting_dialog"
                },
            },
            lua_event = 
            {
                {
                    id  = main_menue_event.MAIN_MENUE_SETTING,
                    callback = "setting_dialog_control.open_setting_dialog"
                },
                {
                    id = open_link_event.OPEN_LINK,
                    callback = "setting_dialog_control.open_setting_dialog_for_open_link"
                },
            },
            reg_service = {
                {
                    id = 'i_open_setting_dialog',
                    callback = "setting_dialog_control.open_setting_dialog_ex"
                },
                {
                    id = "i_svr_show_install_path_mgr",
                    callback = "install_path_mgr_control.show"
                }, 
                {
                    id = "i_svr_close_install_path_mgr",
                    callback = "install_path_mgr_control.close"
                },
                {
                    id = "i_svr_select_install_path",
                    callback = "install_path_mgr_control.get_path"
                },{
                    id = "i_svr_click_clean_page_cache_btn",
                    callback = "setting_dialog_view.click_clean_page_cache_btn"
                }, {
                    id = "i_svr_click_close_sys_setting_btn",
                    callback = "setting_dialog_control.close_setting_dialog"
                }, {
                    id = "i_svr_select_download_path",
                    callback = "setting_dialog_control.get_path"
                },  {
                    id = "i_svr_deal_lanuage_change",
                    callback = "setting_dialog_view.deal_lanuage_change"
                },
            },
            listen_broadcast = 
            {
                {
                    id = "i_broadcast_tgp_config_mgr_subscribe_flag_update",
                    callback = "setting_dialog_control.on_subscribe_flag_updated"
                },{
                    id = "i_broadcast_update_screenshot_hotkey",
                    callback = "setting_dialog_control.on_hotkey_cfg_updated"
                },
                {
                    id = "i_broadcast_path_mgr_info_update",
                    callback = "setting_dialog_control.install_path_mgr_info_update"
                },
                {
                    id = "i_broadcast_cloud_storage_update",
                    callback = "setting_dialog_control.on_cloud_storage_update"
                },
            },
            lua_file = "main_menue_sys_setting\\control.lua"
        }
    }
};
desc_mgr.add(setting_dialog_desc);
ierd_tgp.tpf_ui.Require("main_menue_sys_setting\\control.lua");